package com.cch.demo.sys.service;

import com.cch.demo.sys.domain.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 华哥
 * @since 2020-03-08
 */
public interface RoleService extends IService<Role> {

    /**
     * 根据rid查询所有pid
     * @param rid
     * @return
     */
    List<Integer> queryRolePermissionByRid(Integer rid);


    void saveRolePermission(Integer rid, Integer[] ids);


    List<Integer> queryUserRoleIdsByUid(Integer id);


    void saveRoleUser(Integer uid, Integer[] ids);
}
